{extends file="assets::smarty-templates::Master"|ToPath}
{block name=content}
{html_css file="whiteLabel/light/jquery.datatables.css"}
 
<label><h1>Lista de Amonestaciones Respondidas</h1></label> 
<fieldset>
    <table class="datatable">
         <thead>
            <tr>
                <th class="sorting_asc">Nombre del Practicante</th>
                <th class="sorting">Empresa</th>
                <th class="sorting">Fecha de Reporte</th>
                <th class="sorting">Tipo de Reporte</th>
                <th>Opciones</th>
            </tr>
        </thead>

        <tbody>
            {foreach $reportes as $reporte}
                {$url = "{$vermas}&idReporte={$reporte->getIdReporte()}"}
                <tr>
                    <td>{$reporte->getPracticante()->getEstudiante()->getNombres()} {$reporte->getPracticante()->getEstudiante()->getApellidos()}</td>
                    <td>{$reporte->getPracticante()->getSolicitud()->getEmpresa()->getNombre()}</td>
                    <td>{$reporte->getFecha()|json_to_date:"d/m/Y"}</td>
                    <td>                      
                        {TipoReporte::valueToString($reporte->getTipoReporte())}
                    </td>
                    <td>
                        <a class="btn icon i_archive small" href="{$url}">Ver Mas</a>
                    </td>
                 </tr>
            {/foreach}       
        </tbody>
    </table>
</fieldset>
        <a class="btn icon i_arrow_left small" style="float: right" href="{$volver}">Mostrar Reportes Sin Contestar</a>
{/block}